'use strict';

const log = require('npmlog')
/**
 * 
 * 第二个参数: level 大于指定level才会显示
 */
log.level = process.env.LOG_LEVEL ?  process.env.LOG_LEVEL : 'info'
log.heading = 'cli'
log.headingStyle = {
    fg: 'red',
    bg: 'white'
}
log.addLevel('sucess', 2000, { fg: 'blue', bold: true })

module.exports = log;